<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <!-- <meta name="viewport" content="width=device-width, initial-scale=1.0" /> -->
  <meta name="viewport"
    content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover" />
  <meta name="theme-color" content="#1764ce">
  <link rel="stylesheet" href="./src/util/vant.scss">
  <!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/mammoth@1.4.8/mammoth.browser.min.js"> -->
  <title>消防行政执法</title>
  <style>
    html body {
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0;
      position: absolute;
      top: 0;
      bottom: 0;
    }

    #app {
      width: 100%;
      height: 100%;
    }
  </style>
</head>

<body>
  <div id="app">
  </div>
  <script>
    // 定义一个函数获取当前设备的宽度
    function getWinSize() {
      let width = document.documentElement.clientWidth;
      // 假设设计稿宽度为750px
      // 假设已知根元素我们设置为100px（这里设置100方便后续我们好计算）
      // 动态设置根元素html的fontSize
      document.documentElement.style.fontSize =
        32 * (width / 750) + "px";
    }
    getWinSize();
    window.onresize = getWinSize;
  </script>
  <script type="module" src="/src/main.js"></script>
</body>

</html>